<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<meta charset="utf-8">
<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/angular.min.js"></script>
<script>
    var app = angular.module('myApp', []);
    app.controller('myCtrl', function ($scope, $http) {

        $scope.arr = [];
        $http.get('/test/test/list').then(function (res) {
            $scope.arr = res.data;
            console.log(res.data);
        }, function () {
            alert("读取失败，请刷新重试");
        });
    });
</script>
<body>

<div ng-app="myApp" ng-controller="myCtrl">

    <%--<input type="text" ng-model="num1">-<input type="text" ng-model="num2">={{num1-num2}}--%>
    <ul>
        <li ng-repeat="json in arr">原价：{{json.priceOriginal}}，现价：{{json.price}} ,商品详情:{{json.groupDetail}}</li>
    </ul>
</div>


</body>
</html>